package com.jingdianjichi.circle.api.common;

/**
 * Description:分页请求实体
 * Copyright: Copyright (c) 2024
 * Create Time: 2024-08-03 10:44
 *
 * @author wanglianyun
 */
public class PageInfo {

    private Integer pageNo = 1;

    private Integer pageSize = 20;

    public Integer getPageNo() {
        if (pageNo == null || pageNo < 1) {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize < 1 || pageSize > Integer.MAX_VALUE) {
            return 20;
        }
        return pageSize;
    }


}
